/**
 * @author 赵希奥
 * @date 2022/4/19 1:12
 * @gitHub https://github.com/CKXGZXA
 * @gitee https://gitee.com/ckxgzxa
 * @description:
 * 长官类, 充当抽象处理者
 */
public abstract class Officer {
    // 定义后继对象
    protected Officer successor;

    // 定义长官姓名
    protected String name;

    public Officer(String name) {
        this.name = name;
    }

    // 设置后继者
    public void setSuccessor(Officer successor) {
        this.successor = successor;
    }

    // 抽象请求处理方法
    public abstract void processRequest(MissionRequest request);

}
